'use strict';

module.exports = function collectSameElements(collectionA, collectionB) {
  let arr=new Array();
  let collectionC=new Array();
  arr=collectionB[0];
  for(let i of collectionA)
  
  for(let j of arr){
  if(i==j)
  collectionC.push(i);
}
  return collectionC;





  
}
